package com.fang.gulimall.admin.common.utils.time;

import cn.hutool.core.date.DateUtil;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @ClassName DateTimeUtils
 * @Description TODO
 * @Author fangge
 * @Date 2024/6/14 5:58
 */
public class DateTimeUtils {
    private DateTimeUtils(){

    }

    /**
     * @MethodName getCurrentLocalDateTime
     * @Description 返回当前时间
     * @Author fangge
     * @Date 2024/6/14 6:01
     */
    public static LocalDateTime getCurrentLocalDateTime() {
        return DateUtil.toLocalDateTime(new Date());
    }
}
